<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">


<head>
<title>Home page</title>

</head>
<body>
<ui:composition template="/pages/template/LogonTemplate.xhtml">


	<f:view>
		<h:form id="loginFrom" >

			<rich:panel
				style="text-align:center;width:400px;border-style:solid;margin:30px;padding:px;">
				<f:facet name="header">
					<h:outputText value="Login please" />
				</f:facet>

				<h:panelGrid columns="1">
					<h:messages showDetail="false" style="color:darkred"
						showSummary="true" layout="table" />
				</h:panelGrid>				
				<h:panelGrid columns="2">
					<h:outputText value="Enrtr user Name"></h:outputText>
					<h:inputText id="userName" value="#{userAction.user.userName}" required="true"></h:inputText>
				</h:panelGrid>
				<h:panelGrid columns="2">
					<h:outputText value="Enter Password"></h:outputText>
					<h:inputSecret id="password" value="#{userAction.user.password}"
						required="true">						
					</h:inputSecret>
				</h:panelGrid>
				<h:panelGrid columns="1">
					<h:commandButton action="#{userAction.login}" value="Logon"></h:commandButton>
				</h:panelGrid>



			</rich:panel>
		</h:form>


	</f:view>



</ui:composition>
</body>
</html>